package com.qiuhu.javase.innerclass;


public class OuterClassTwo {

	public void display() {
		System.out.println("OuterClassTwo...");
	}
	
	public class InnerClass {
		public OuterClassTwo getOuterClass() {
			return OuterClassTwo.this;
		}
	}
	
	public static void main(String[] args) {
		OuterClassTwo outerClassTwo = new OuterClassTwo();
		OuterClassTwo.InnerClass innerClass = outerClassTwo.new InnerClass();
		innerClass.getOuterClass().display();
	}
}
